<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2022/4/7
  Time: 0:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>更新图书</title>
</head>
<body>
    <h3>更新图书</h3>
    <form action="update" method="post" enctype="application/x-www-form-urlencoded">
        <table>
            <tr>
                <td>编号：</td>
                <td>
                    <input type="text" name="id" value="${book.id}" readonly="readonly"/>
                </td>
            </tr>
            <tr>
                <td>书名：</td>
                <td>
                    <input type="text" name="title" value="${book.title}"/>
                </td>
            </tr>
            <tr>
                <td>作者：</td>
                <td>
                    <input type="text" name="author" value="${book.author}"/>
                </td>
            </tr>
            <tr>
                <td>出版时间;</td>
                <td>
                    <input type="text" name="publicDate" value=' <fmt:formatDate value="${book.publicDate}" pattern="yyyy-MM-dd"></fmt:formatDate>'/>

                </td>
            </tr>
            <tr>
                <td>出版社：</td>
                <td>
                    <input type="text" name="publisher" value="${book.publisher}"/>
                </td>
            </tr>
            <tr>
                <td>ISBN：</td>
                <td>
                    <input type="text" name="isbn" value="${book.isbn}"/>
                </td>
            </tr>
            <tr>
                <td>价格：</td>
                <td>
                    <input type="text" name="price" value="${book.price}"/>
                </td>
            </tr>
            <tr>
                <td>图片：</td>
                <td>
                    <input type="text" name="picture" value="${book.picture}"/>
                </td>
            </tr>
            <tr>
                <td>类别：</td>
                <td>
                    <input type="text" name="cid" value="${book.cid}"/>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                <input type="submit" value="保存"/>
                    <input type="reset" value="重置"/>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
